
import java.util.LinkedHashSet;

public class LinkedHashSetTest {
    public static void main(String[] args) {
        LinkedHashSet books = new LinkedHashSet();
        books.add("Java从入门到精通");
        books.add("数据结构与算法");
        System.out.println(books);
        books.remove("Java从入门到精通");
        books.add("Java从入门到精通");
        System.out.println(books);
    }
}
